﻿using Microsoft.AspNetCore.Builder;

namespace Core.Middleware.XMLDiscription
{
    public static class UseXMLMidWare
    {
        /// <summary>
        /// 启用 XMLDiscription
        /// </summary>
        /// <param name="applicationBuilder"></param>
        /// <returns></returns>
        public static IApplicationBuilder XMLDiscriptionMidWare(this IApplicationBuilder applicationBuilder)
        {
            return applicationBuilder.UseMiddleware<XMLDiscriptionMidWare>();
        }

    }
}
